<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2021/4/1
  Time: 19:53
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <a href="addUI"><button type="button">添加</button></a>
    <table border="1px" width="600" height="400">
        <tr>
            <td>id</td>
            <td>name</td>
            <td>age</td>
            <td>email</td>
            <td>操作</td>
        </tr>

        <c:forEach var="user" items="${list}" >
            <tr>
                <td>${user.id}</td>
                <td>${user.name}</td>
                <td>${user.age}</td>
                <td>${user.email}</td>
                <td>
                    <a href="editUI?id=${user.id}">修改</a>
                    <a href="del?id=${user.id}">删除</a>
                </td>
            </tr>
        </c:forEach>
    </table>

</body>
</html>
